﻿using System;
using System.Collections.Generic;

using System.Text;
using System.Data;
using DBManager.Admin;

namespace BO.Admin
{
    public class BannersBO
    {
        #region banner
        public static string EditStatusBO(string id, string status)
        {
            return BannersDAL.EditStatus(id, status);
        }
        public static DataTable showAllBannerCache(string showAllBanner, string checkStatus)
        {
            return BannersDAL.showAllBanner(showAllBanner, checkStatus);
        }
        public static DataTable getInfomationByIDCache(string id)
        {
            return BannersDAL.getInfomationByID(id);
        }
        public static string editBannerBO(string title, string url, string shortContent, string img, string status, string sizeBanner, string catid, string note, string id)
        {
            return BannersDAL.editBanner(title, url, shortContent, img, status, sizeBanner, catid, note, id);
        }
        public static string addBannerBO(string title, string url, string shortContent, string img, string status, string sizeBanner, string catid, string note)
        {
            return BannersDAL.addBanner(title, url, shortContent, img, status, sizeBanner, catid, note);
        }
        public static DataTable getListBannerCache()
        {
            return BannersDAL.getListBanner();
        }
        #endregion
    }
}
